const adress = "https://www.laoli.com?a=1&b=2&c=3";

function getObj(adress) {
    const arr = adress.split("?")[1].split("&");
    const obj = arr.reduce((pre, cur) => {
        pre[cur.charAt(0)] = +cur.charAt(cur.length - 1);
        return pre;
    }, {});
    console.log(obj);
}

getObj(adress);
